package com.practice.ajCollections010.list.arraylist;

import java.util.ArrayList;
import java.util.List;

/**
 * 更新元素
 */
public class UpdateElement {

    public static void main(String[] args) {
        List list = new ArrayList(10);
        list.add("hello");
        list.set(0, "world");
        System.out.println(list.get(0));
    }
}
